<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div align="center">
	标题:${topic.title }  作者:${topic.author }  时间:${topic.createdate }  浏览量:${topic.clickamount }
	<br>
	正文：${topic.content }
	</div>
	<hr>	
	<br>
	<div align="center">评论区：</div>
	<table align="center">
		<tr>
			<th style="width: 25%">昵称</th>
			<th style="width: 35%">时间</th>
			<th style="width: 40%">内容</th>
		</tr>
		<c:forEach var="sn" items="${list}">
			<tr>
				<td>${sn.author }</td>
				<td>${sn.createdate }</td>
				<td>${sn.content }</td>
			</tr>
		</c:forEach>
	</table>
	<hr>
	<form action="${ctx}/reply/addReply.action" method="post">
		<input type="hidden" name="topicid" value="${topic.topicid }">
		昵称:<input type="text" name="author" > <br>
          评论:<textarea rows="5" cols="30"  name="content"></textarea>    <br>
		<input type="submit" value="发表评论">
	</form>
</body>
</html>